package com.itheima.service.Impl;

import com.itheima.domain.User;
import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {

    private UserMapper mapper;

    public void setMapper(UserMapper mapper) {
        this.mapper = mapper;
    }

    public List<User> findAll() {
        return mapper.findAll();
    }

    public User findById(Integer i) {
        return mapper.findById();
    }

    public void update(User user) {
        mapper.update(user);
    }

    public void delete(Integer id) {
        mapper.delete(id);
    }

    public void insert(User user) {
        mapper.insert(user);
    }
}
